package cn.iocoder.devlop.module.annual.report.sfcbranchinfo.dal;

import java.util.*;

import cn.iocoder.devlop.framework.common.pojo.PageResult;
import cn.iocoder.devlop.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.devlop.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.devlop.framework.mybatis.core.query.MPJLambdaWrapperX;
import cn.iocoder.devlop.module.annual.report.sfcbranchinfo.dal.dataobject.SfcBranchinfoDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 年报农合分支机构信息 Mapper
 *
 * @author 超级管理员
 */
@Mapper
public interface SfcBranchinfoMapper extends BaseMapperX<SfcBranchinfoDO> {

    default List<SfcBranchinfoDO> selectListByAncheid(@Param("ancheid") String ancheid) {
        MPJLambdaWrapperX<SfcBranchinfoDO> wrapperX = new MPJLambdaWrapperX<>();
        wrapperX.selectAll(SfcBranchinfoDO.class)
                .disableSubLogicDel()
                .eq(SfcBranchinfoDO::getAncheid, ancheid);
        return selectJoinList(SfcBranchinfoDO.class, wrapperX);
    }

}
